<!-- check if student got career -->
<?php if (count($mycourse) > 0) {
?>
    <h2><u>My Selected Course </u></h2>

    <!--Search result - Retrieve the data from database and display the result-->

    <!--            Display the search result-->
    <form id="insForm" action="<?php echo site_url('course_selection/deletecourse') ?>" method="post" >
            <br>
            <input type="button" id="checkAll" name="checkAll" value="Mark All/Un-mark All">
            <input type="button" name="delusercou" id="delusercou" value="Delete"
                   onmouseover="this.style.color='#FF8040'; this.style.textDecoration='underline'"
                   onmouseout="this.style.color='#1569C7'; this.style.textDecoration='none'">
            <input type="hidden" id="ucouurl" value="<?php echo site_url('course_selection/deletecourse'); ?>">
            <table cellpadding="0" cellspacing="0" border="0" class="display" id="infoTable">
                <thead>
                    <tr>
                        <th></th>
                        <th>Course</th>
                        <th>Course Description</th>
                        <th>Discipline</th>
                        <th>Requirements</th>
                        <th>Career</th>
                    </tr>
                </thead>
                <tbody>
                <?php
                foreach ($mycourse_ss as $row) {
                ?>
                    <tr class="odd gradeA">
                        <td width="20px"><input type="checkbox" name="course_id[]" id="course_id" value="<?php echo $row->course_id; ?>"></td>
                        <td><?php echo $row->course_name; ?></td>
                        <td style="width:100px" id="desc" onclick="window.open('http://ddante.me/SmartChoice/index.php?/course_selection/showDesc/<?php echo $row->course_id; ?>','Ratting','width=550,height=170,0,status=0,location=0,left=200px, top=300px'); this.style.color='blue'; this.style.textDecoration='none';"
                            onmouseover="this.style.color='grey'; this.style.textDecoration='underline';"
                            onmouseout="this.style.textDecoration='none';"><?php echo substr($row->course_description, 0, 45);
                    echo "..." ?></td>
                    <td><?php echo $row->discipline_name; ?></td>
                    <td><?php echo $row->requirement_description; ?></td>
                    <td>Click here for Career Available</td>
                </tr>
                <?php
                    }
                ?>
                </tbody>
            </table>    
    </form>
<?php } ?>

<?php if (count($scareer) > 0) {
?>
                    <div class="contentBody">

                        <div class="left">
                            <br/>
                            <h2><u>Course Selection</u></h2>
                            <br/>

                            <!--Search for course relating to career-->
                            <div id="courseSearch" style="margin-left:40px;">
                                <form name="searchform" action="<?php echo site_url('course_selection/search_cc') ?>" method="POST">
                                    <table>
                                        <tr>
                                            <th>Course Search relating prior to your Selected Career</th>
                                            <td><select name="cate" id="cate">
                                                    <option value="course_name" >Course</option>
                                                    <option value="discipline_name" >Discipline</option>
                                                    <option value="requirement_description" >Requirements</option>
                                                </select></td>
                                            <td><input type="text" id="keyword" name="keyword" size="20"></td>
                                            <td><input name="submitcourseSearch" id="Filter" value="Filter" type="submit"></td>
                                        </tr>
                                    </table>
                                </form>
                            </div>
                            <div id="Results" style="margin-left:40px;">
                                <table id="table_ins" class="tablesorter" width="600px" border="1px" id="infoTable" cellspacing="0px">
                                    <thead>
                                        <tr>
                                            <th>Course</th>
                                            <th>Course Description</th>
                                            <th>Discipline</th>
                                            <th>Requirements</th>
                                            <th>Career</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                    <?php
                    foreach ($Results as $row) {
                    ?>

                        <tr>
                            <td><?php echo $row->course_name; ?></td>
                            <td><?php echo $row->course_description; ?></td>
                            <td><?php echo $row->discipline_name; ?></td>
                            <td><?php echo $row->requirement_description; ?></td>
                            <td>hyperlinking</td>
                        </tr>

                    <?php
                    }
                    ?>

                </tbody>
            </table>
        </div>

    </div>
</div>
<?php } ?>
                <br>

                <div class="contentBody">

                    <div class="left">
                        <h2><u>Search for more Courses  </u></h2>
                        <br>
                        <!--Search for course-->
                        <div id="courseSearch" style="margin-left:40px;">
                            <form name="searchform" action="<?php echo site_url('course_selection/search') ?>" method="POST">
                                <table>
                                    <tr>
                                        <th>Search Course</th>
                                        <td><select name="cate" id="cate">
                                                <option value="course_name" >Course</option>
                                                <option value="discipline_name" >Discipline</option>
                                                <option value="requirement_description" >Requirements</option>
                                            </select></td>
                                        <td><input type="text" id="keyword" name="keyword" size="20"></td>
                                        <td><input name="submitcourseSearch" id="Filter" value="Filter" type="submit"></td>
                                    </tr>
                                </table>
                            </form>
                        </div>
                    </div>
                </div>



                <!-- after selection and going through to the next step-->
<?php if (count($mycourse) > 0) {
?>
                    <div class="contentBody">

                        <div class="left">
                            <h2><u>Do you wish to continue to select institution </u></h2>
                            <br>
                            <a href="<?php echo site_url('institution_selection') ?>"id="add" onmouseover="this.style.color='#1569C7'" onmouseout="this.style.color='#FF8040'" style="color:#FF8040">Click here to take institution</a>

                        </div>
                    </div>

<?php } ?>


